#导包
import unittest
import utils
from api.login import LoginAPI

class TestLoginAPI(unittest.TestCase):
    def setUp(self) -> None:
        self.login_api = LoginAPI()

    def tearDown(self) -> None:
        pass

    def test_login(self):
        response = self.login_api.login({"mobile": "13800000002", "password": "123456"})
        # print(response.json())
        # self.assertEqual(200,response.status_code)
        # self.assertEqual(True,response.json().get("success"))
        # self.assertEqual(10000,response.json().get("code"))
        # self.assertIn("操作成功",response.json().get("message"))
        utils.common_assert(self,response)